package com.huan.service;

import com.huan.pojo.PageBean;
import com.huan.pojo.Teacher;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface TeacherService {

    /**
     * 分页条件查询
     * @param currentPage
     * @param pageSize
     * @return
     */
    PageBean<Teacher> selectByPageAndCondition(int currentPage, int pageSize, Teacher teacher);


    /**
     * 增加
     * @param teacher
     */
    boolean add(Teacher teacher);

    /**
     * 编辑学生
     * @param teacher
     */
    int update(Teacher teacher);

    /**
     *删除
     * @param teacherID
     */
    void delete(String teacherID);

    /**
     * 批量删除
     * @param ids
     */
    void deleteByIds(@Param("ids") String[] ids);
}
